﻿namespace TimeSpan.Views.Dialogs;

public partial class SpanResultWindow : IEditor<SpanTask>, IResult<bool?> {
    
    public SpanTask? ObjectToEdit { get; set; }

    public bool? Result { get; set; }

    public SpanResultWindow() {
        InitializeComponent();
    }

    private void Close_Click(object sender, System.Windows.RoutedEventArgs e) {
        Result = null;
        Close();
    }
    
    private void Enter_Click(object sender, System.Windows.RoutedEventArgs e) {
        Result = true;
        DialogResult = true;
    }
    
    private void Back_Click(object sender, System.Windows.RoutedEventArgs e) {
        Result = false;
        DialogResult = false;
    }

}